package com.wanpinghui.wphlibrary.model.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.wanpinghui.wphlibrary.model.addrbook.bean.MoblieBean;

import java.util.List;

/**
 * Created by tg596 on 2018/2/2.
 */

public class CompanyBean implements Parcelable  {


    /**
     audit_status (integer, optional): 公司审核状态:1待提交/11审理中/21审理失败/51审理结束 ,
     caseList (Array[案例传输对象], optional): 案例 ,
     certificates (string, optional): 认证信息 ,
     company_location (string, optional): 公司位置 ,
     company_name (string, optional): 公司名称 ,
     company_scope (string, optional): 经营范围 ,
     company_type (string, optional): 公司类型 ,
     courseList (Array[课程传输对象], optional): 发展历程 ,
     created_at (integer, optional): 创建时间 ,
     deleted_at (integer, optional): 删除时间 ,
     fill_step (integer, optional),
     id (integer, optional): 主键 ,
     intro (string, optional): 公司简介 ,
     legal_person (string, optional): 法人代表 ,
     logo (string, optional): 公司logo ,
     pos (string, optional): 所在职位 ,
     registered_address (string, optional): 注册地址 ,
     registered_capital (number, optional): 注册资金 ,
     registered_date (integer, optional): 注册日期 ,
     registered_number (string, optional): 注册号 ,
     registration_authority (string, optional): 登记机关 ,
     remark (string, optional): 审核失败备注 ,
     skillList (Array[特长传输对象], optional): 服务专长 ,
     status (integer, optional): 状态 ,
     updated_at (integer, optional): 更新时间 ,
     view_times (integer, optional): 查看次数
     */

    private int audit_status;
    private List<CaseBean> caseList;
    private String certificates;
    private String company_name;

    private String company_location;
    private String pos;
    private String company_scope;
    private String legal_person;
    private String registered_address;
    private String registered_number;
    private String registration_authority;
    private String remark;
    private String company_type;
    private List<CourseBean> courseList;
    private int created_at;
    private int deleted_at;
    private int fill_step;
    private long id;
    private String intro;
    private String logo;
    private double registered_capital;
    private long registered_date;
    private List<SkillBean> skillList;
    private int status;
    private int updated_at;
    private int view_times;

    public CompanyBean(){

    }

//    @Override
//    public int hashCode() {
//        return super.hashCode();
//    }
//
//    @Override
//    public boolean equals(Object o) {
//        if (o instanceof MoblieBean){
//            String moblieBean = (String) o;
//            return  this.company_name.contains(moblieBean.toLowerCase());
//        }
//        return super.equals(o);
//    }

    public int getAudit_status() {
        return audit_status;
    }

    public void setAudit_status(int audit_status) {
        this.audit_status = audit_status;
    }

    public String getCertificates() {
        return certificates;
    }

    public void setCertificates(String certificates) {
        this.certificates = certificates;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public String getCompany_type() {
        return company_type;
    }

    public void setCompany_type(String company_type) {
        this.company_type = company_type;
    }

    public int getCreated_at() {
        return created_at;
    }

    public void setCreated_at(int created_at) {
        this.created_at = created_at;
    }

    public int getDeleted_at() {
        return deleted_at;
    }

    public void setDeleted_at(int deleted_at) {
        this.deleted_at = deleted_at;
    }

    public int getFill_step() {
        return fill_step;
    }

    public void setFill_step(int fill_step) {
        this.fill_step = fill_step;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public double getRegistered_capital() {
        return registered_capital;
    }

    public void setRegistered_capital(double registered_capital) {
        this.registered_capital = registered_capital;
    }

    public long getRegistered_date() {
        return registered_date;
    }

    public void setRegistered_date(long registered_date) {
        this.registered_date = registered_date;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(int updated_at) {
        this.updated_at = updated_at;
    }

    public int getView_times() {
        return view_times;
    }

    public void setView_times(int view_times) {
        this.view_times = view_times;
    }




    public List<SkillBean> getSkillList() {
        return skillList;
    }

    public void setSkillList(List<SkillBean> skillList) {
        this.skillList = skillList;
    }

    public List<CourseBean> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<CourseBean> courseList) {
        this.courseList = courseList;
    }

    public List<CaseBean> getCaseList() {
        return caseList;
    }

    public void setCaseList(List<CaseBean> caseList) {
        this.caseList = caseList;
    }

    public String getCompany_scope() {
        return company_scope;
    }

    public void setCompany_scope(String company_scope) {
        this.company_scope = company_scope;
    }

    public String getLegal_person() {
        return legal_person;
    }

    public void setLegal_person(String legal_person) {
        this.legal_person = legal_person;
    }

    public String getRegistered_address() {
        return registered_address;
    }

    public void setRegistered_address(String registered_address) {
        this.registered_address = registered_address;
    }

    public String getRegistered_number() {
        return registered_number;
    }

    public void setRegistered_number(String registered_number) {
        this.registered_number = registered_number;
    }

    public String getRegistration_authority() {
        return registration_authority;
    }

    public void setRegistration_authority(String registration_authority) {
        this.registration_authority = registration_authority;
    }



    public String getCompany_location() {
        return company_location;
    }

    public void setCompany_location(String company_location) {
        this.company_location = company_location;
    }

    public String getPos() {
        return pos;
    }

    public void setPos(String pos) {
        this.pos = pos;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.audit_status);
        dest.writeTypedList(this.caseList);
        dest.writeString(this.certificates);
        dest.writeString(this.company_name);
        dest.writeString(this.company_location);
        dest.writeString(this.pos);
        dest.writeString(this.company_scope);
        dest.writeString(this.legal_person);
        dest.writeString(this.registered_address);
        dest.writeString(this.registered_number);
        dest.writeString(this.registration_authority);
        dest.writeString(this.remark);
        dest.writeString(this.company_type);
        dest.writeTypedList(this.courseList);
        dest.writeInt(this.created_at);
        dest.writeInt(this.deleted_at);
        dest.writeInt(this.fill_step);
        dest.writeLong(this.id);
        dest.writeString(this.intro);
        dest.writeString(this.logo);
        dest.writeDouble(this.registered_capital);
        dest.writeLong(this.registered_date);
        dest.writeTypedList(this.skillList);
        dest.writeInt(this.status);
        dest.writeInt(this.updated_at);
        dest.writeInt(this.view_times);
    }

    protected CompanyBean(Parcel in) {
        this.audit_status = in.readInt();
        this.caseList = in.createTypedArrayList(CaseBean.CREATOR);
        this.certificates = in.readString();
        this.company_name = in.readString();
        this.company_location = in.readString();
        this.pos = in.readString();
        this.company_scope = in.readString();
        this.legal_person = in.readString();
        this.registered_address = in.readString();
        this.registered_number = in.readString();
        this.registration_authority = in.readString();
        this.remark = in.readString();
        this.company_type = in.readString();
        this.courseList = in.createTypedArrayList(CourseBean.CREATOR);
        this.created_at = in.readInt();
        this.deleted_at = in.readInt();
        this.fill_step = in.readInt();
        this.id = in.readLong();
        this.intro = in.readString();
        this.logo = in.readString();
        this.registered_capital = in.readDouble();
        this.registered_date = in.readLong();
        this.skillList = in.createTypedArrayList(SkillBean.CREATOR);
        this.status = in.readInt();
        this.updated_at = in.readInt();
        this.view_times = in.readInt();
    }

    public static final Creator<CompanyBean> CREATOR = new Creator<CompanyBean>() {
        @Override
        public CompanyBean createFromParcel(Parcel source) {
            return new CompanyBean(source);
        }

        @Override
        public CompanyBean[] newArray(int size) {
            return new CompanyBean[size];
        }
    };
}
